package com.weacar.weixin.util;

import org.slf4j.Logger;

/**
 * Utility functions for logging.
 *
 *
 */
public final class LogUtils {

    public static void errorException(Logger logger,
                                    String prefix,
                                    Throwable e) {
        String message = e.toString();
        if (prefix != null) {
            message = prefix + ": " + message;
        }

        logger.error(message, e);
    }
}
